home *** CD-ROM | disk | FTP | other *** search
-
- /*******************************************************
- *
- * file d:\cips\gin.c
- *
- * Functions: This file contains
- * get_image_name
- *
- * Purpose - This function prompts the user to enter the
- * name of an image.
- *
- * External Calls:
- * rstring.c - read_string
- * clear_buffer
- *
- * Modifications:
- * 26 September 86 - now uses vision3.h instead of
- * vision2.h and the read_string and get_integer
- * instead of scanf.
- * 11 March 1987 - this function was removed from the
- * file ip.c and put in file gin.c.
- *
- ******************************************************/
-
-
- #include "d:\cips\cips.h"
-
-
-
- get_image_name(name)
-
- char name[];
- {
- char response[80];
- printf("\n\nImage name is--%s", name);
- printf("\nDo you want to change this name (Y/N)? _\b");
- clear_buffer(response);
- read_string(response);
- if((response[0] == 'Y') ||
- (response[0] == 'y')){
- printf("\n\nEnter image name\n--");
- read_string(name);
- }
- } /* ends get_image_name */